// 会员财务流水
module.exports = (app) => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const VipconfigSchema = new Schema({
    ownerWxid: { type: String, required: true, index: true }, // 所属微信号
    month: { type: Number, default: 1 }, // 包月费
    quarter: { type: Number, default: 3 }, 
    year: { type: Number, default: 12 }, 
  });

  VipconfigSchema.index({ ownerWxid: 1 });

  return mongoose.model("Vipconfig", VipconfigSchema);
};
